package com.offcn.sellergood.feign;

import com.offcn.entity.Result;
import com.offcn.sellergood.pojo.ItemCat;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: zola
 * @Date: 2021/9/14 - 09 - 14 - 19:50
 * @Description: com.offcn.sellergood.feign
 * @Version: 1.0
 */
@FeignClient(name = "SELLGOOD-SERVICE")
public interface ItemCatFeign {
    // 将ItemCatController中的findById方法远程调用：目的是用于获取其中的三级标题(内容)
    
    @GetMapping("/itemCat/{id}")
    public Result<ItemCat> findById(@PathVariable Long id);

}
